<template>
	<view class="l_pages">
		<jnavbar title="联系我们"></jnavbar>
		<u-cell-group>
			<u-cell-item title="联系人" :value="detail.contacts" :arrow="false"></u-cell-item>
			<u-cell-item @click='call(detail.mobile1)' title="联系电话1" :value="detail.mobile1" :arrow="false"></u-cell-item>
			<u-cell-item @click='call(detail.mobile2)' v-if='detail.mobile2' title="联系电话2" :value="detail.mobile2" :arrow="false"></u-cell-item>			
		</u-cell-group>
	</view>
</template>

<script>
export default {
	data() {
		return {
			detail:''
		};
	},
	mounted() {
		this.getmallContact()
	},
	methods: {
		getmallContact(){
			this.$http('/configuration/mallContact',{},'GET').then(res=>{
				this.detail=res.data.msg;
			})
		},
		call(e){
			uni.makePhoneCall({
				phoneNumber:e
			})
		}
	}
};
</script>

<style></style>
